package com.jifeng.br.pjj.bookreader.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jifeng.br.pjj.bookreader.entity.BookCatalogEntity;
import com.jifeng.br.pjj.bookreader.entity.RecordEntity;
import com.jifeng.br.pjj.bookreader.util.R;

import java.util.List;

/**
 * <p>
 * 图书章节表 服务类
 * </p>
 *
 * @author 机蜂
 * @since 2023-07-11
 */
public interface BookCatalogService extends IService<BookCatalogEntity> {
    IPage<BookCatalogEntity> getPage(int page, int limit, BookCatalogEntity bookCatalog);

    List<BookCatalogEntity> getList(int bookId);

    R getCatalogByUser(RecordEntity record);
}
